import request from '../../utils/request';
import statTranUrl from '../urls/stattran'


//新增部门调度信息
export const addStatTran = data => {
    return request({
        headers: {
            "Content-Type": "application/json"
        },
        url: statTranUrl.addStatTranUrl,
        method: 'post',
        data: data
    });
};




 //根据上传的参数获取岗位调度信息
export const fetchStatTran = data => {
    return request({
        url: statTranUrl.fetchStatTranUrl,
        method: 'get',
        params: data
    });
};


//岗位调度报表，根据上传的开始和结束时间获取这段时间内的数据
 export const fetchStatTranByTime = data => {
    return request({
        url: statTranUrl.fetchStatTranByTimeUrl,
        method: 'get',
        params: data
    });
};
    

    